<div>
    <h2>
        <span jhiTranslate="notebookWxappApp.pic.home.title">Pics</span>
        <button class="btn btn-primary float-right jh-create-entity create-pic" [routerLink]="['/', { outlets: { popup: ['pic-new'] } }]">
            <span class="fa fa-plus"></span>
            <span  jhiTranslate="notebookWxappApp.pic.home.createLabel">
            Create new Pic
            </span>
        </button>
    </h2>
    <jhi-alert></jhi-alert>
    <div class="row">
    </div>
    <br/>
    <div class="table-responsive" *ngIf="pics">
        <table class="table table-striped">
            <thead>
            <tr>
            <th><span jhiTranslate="global.field.id">ID</span></th>
            <th><span jhiTranslate="notebookWxappApp.pic.path">Path</span></th>
            <th><span jhiTranslate="notebookWxappApp.pic.message">Message</span></th>
            <th></th>
            </tr>
            </thead>
            <tbody>
            <tr *ngFor="let pic of pics ;trackBy: trackId">
                <td><a [routerLink]="['../pic', pic.id ]">{{pic.id}}</a></td>
                <td>{{pic.path}}</td>
                <td>
                    <div *ngIf="pic.messageId">
                        <a [routerLink]="['../message', pic.messageId  ]" >{{pic.messageId}}</a>
                    </div>
                </td>
                <td class="text-right">
                    <div class="btn-group flex-btn-group-container">
                        <button type="submit"
                                [routerLink]="['../pic', pic.id ]"
                                class="btn btn-info btn-sm">
                            <span class="fa fa-eye"></span>
                            <span class="d-none d-md-inline" jhiTranslate="entity.action.view">View</span>
                        </button>
                        <button type="submit"
                                [routerLink]="['/', { outlets: { popup: 'pic/'+ pic.id + '/edit'} }]"
                                replaceUrl="true"
                                queryParamsHandling="merge"
                                class="btn btn-primary btn-sm">
                            <span class="fa fa-pencil"></span>
                            <span class="d-none d-md-inline" jhiTranslate="entity.action.edit">Edit</span>
                        </button>
                        <button type="submit"
                                [routerLink]="['/', { outlets: { popup: 'pic/'+ pic.id + '/delete'} }]"
                                replaceUrl="true"
                                queryParamsHandling="merge"
                                class="btn btn-danger btn-sm">
                            <span class="fa fa-remove"></span>
                            <span class="d-none d-md-inline" jhiTranslate="entity.action.delete">Delete</span>
                        </button>
                    </div>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</div>
